package cn.JHai.service;

import cn.JHai.domain.Favorite;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;

public interface FavoritesService  {

    public boolean save(Favorite favorite);
    // 查找所有
    public ArrayList<Favorite> findAll();

    public ArrayList<Favorite> findWithUid(int uid);

    public Favorite find(String mid);

    public ArrayList<Favorite> findfavorite(String name) ;

    public boolean delete(String mid) ;

    public boolean update(Favorite favorite);

}
